#!/bin/sh

# tiny-cloud-early needs to be in default, not sysinit or boot
if [ -L /etc/runlevels/sysinit/tiny-cloud-early ] || \
	[ -L /etc/runlevels/boot/tiny-cloud-early ]; then
	rm /etc/runlevels/sysinit/tiny-cloud-early \
		/etc/runlevels/boot/tiny-cloud-early
	ln -sf /etc/init.d/tiny-cloud-early /etc/runlevels/default
fi

# tiny-cloud-net only existed during 3.0.0-rc
if [ -L /etc/runlevels/default/tiny-cloud-net ]; then
	rm /etc/runlevels/default/tiny-cloud-net
	ln -sf /etc/init.d/tiny-cloud-boot /etc/runlevels/boot
fi
